package com.userautentification.dao;

import java.io.Serializable;
import java.util.List;

public interface GenericDao<T, ID extends Serializable> {



	/**
	 * Insert a new Object into the database.
	 * 
	 * @param object
	 */
	public void create(T object);

	/**
	 * Delete a detached Object from the database.
	 * 
	 * @param object
	 */
	public void delete(T event);

	/**
	 * Find an Object by its primary key.
	 * 
	 * @param id
	 * @return
	 */
//	public T find(ID id);

	/**
	 * Updates the state of a detached Object.
	 * 
	 * @param object
	 */
	public void update(T object);

	/**
	 * Finds all Objects in the database.
	 * 
	 * @return
	 */
	public List findAll();
	
	
	

}
